import { ElMessage } from 'element-plus';

export function reqFeedback(res: any, tip: string = '操作成功') {
  if (res.code === 200) {
    ElMessage({
      message: tip,
      type: 'success',
    });
  } else {
    ElMessage({
      message: res.msg,
      type: 'error',
    });
  }
}
